<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>layer</title>
    <script src="qrcode/jquery2.1.4.js"></script>
    <script src="layer/layer.js"></script>

    <script>
        function msgTest(){
            //layer.msg("提示的文字")
            layer.msg("提示的文字",function (){
                //弹窗结束后执行
            });
        }

        function loadTest() {
            //返回弹出层的id
            var windowID = layer.load(1);//0-16
            //通过窗口的抖动，关闭窗口
            setTimeout(function (){},10000);
            layer.close(windowID);
        }
    </script>
</head>
<body>

<button onclick="msgTest()">msg函数</button><br>
<button onclick="loadTest()">load函数</button><br>


</body>
</html>